 <{extends file="<{$tempdir}>/public/admin.html"}>
   <{block name=extendjs}>
<script type="text/javascript" language="javascript" src="<{$siteurl}>/templates/<{$tempdir}>/public/js/artdialog/plugins/iframeTools.js"></script>
 <{/block}>
 <{block name=controlname}>广告列表<{/block}>
 <{block name=bodylist}>

    <div class="managShopCon">
	<div class="managShopBox">
		<div class="managShopMain">
		<{include file="<{$tempdir}>/public/commentcate.html"}>  
			
			<div class="addShopSingCon">
   <div style="width:auto;overflow-x:hidden;overflow-y:auto">
           <div class="tags">
		   
		
			
		   
		   
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();" id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">id</th>
                         <th align="center">标题</th>
                        <th align="center">广告类型</th>

                        <th align="center">图片</th>
 
                        <th align="center">操作</th>

                      </tr>

                    </thead>

                     <tbody>
                     	  <{$advtypelist = array()}>
                     		<{if !empty($advtype)}>
	 	                      <{$lists = $advtype|unserialize}>
	 	                      <{foreach from=$lists key=mykey item=items}>

	 	                           <{$advtypelist[$items['typename']] = $items['typeurl']}>
	 	                      <{/foreach}>

	 	                    <{/if}>
                      <{load_data assign="list" table="adv" showpage="true"  fileds="*" where="cityid=<{$admininfo['cityid']}>  "  }>
					  <{if empty($list['list']) }>
						   <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
						   <td  align=center colspan=6>暂无数据</td>
					   </tr>
					   <{else}>
						  <{foreach from=$list['list'] item=items}>
						  <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
							<td align="center" ><input type="checkbox" name="id[]" value="<{$items['id']}>"></td>
							<td align="center"><{$items['id']}></td>
							<td align="center"> <{$items['title']}> </td>
							<td align="center"><{$advtypelist[$items['advtype']]|default:'未定义'}></td>
							<td align="center"><img src="<{$items['img']}>" width="30px" height="30px"></td>
							 <td align="center"><a href="<{ofunc type=url link="/areaadminpage/adv/module/addadv/id/<{$items['id']}>"}>" ><img src="<{$siteurl}>/templates/<{$tempdir}>/public/images/admin/edit.jpg"></a>
								<a onclick="return remind(this);" href="<{ofunc type=url link="/areaadminpage/adv/module/deladv/id/<{$items['id']}>/datatype/json"}>"><img src="<{$siteurl}>/templates/<{$tempdir}>/public/images/admin/del.jpg"></a></td>
						  </tr>
						   <{/foreach}>
					<{/if}>
                    </tbody>
                  </table>
                <div class="blank20"></div>

                </form>

                <div class="page_newc">
                 	     <div class="select_page">
                 	     	 <a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a>
                 	     <a onclick="return remindall(this);" href="<{ofunc type=url link="/areaadminpage/adv/module/deladv/datatype/json"}>" class="delurl">删除</a>

                 	     	<a   href="<{ofunc type=url link="/areaadminpage/adv/module/addadv"}>" class="delurl">添加广告</a>
                 	     	</div>
                       <div class="show_page"><ul><{$list['pagecontent']}></ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>


  </div>

</div>
</div>
</div>
</div>
</div>

<!--newmain 结束-->
<{/block}>